<script lang="ts" setup>
  const props = defineProps({
    loading: {
      type: Boolean,
      default: true,
    },
  });
</script>

<template>
  <div class="loading" v-show="props.loading">
		<img class="loading-img" src="~@/assets/images/loading.gif" />
	</div>
</template>

<style scoped lang="scss">
  @import "../../assets/styles/mixins.scss";

  .loading {
    @include vh-center;
    height: 3rem;

    .loading-img {
      width: .8rem;
      height: .8rem;
    }
  }
</style>
